Optimal. Leaf size=71 \[ -\frac{25 \left (x^2+5\right )}{72 \left (x^4+2 x^2+3\right )}-\frac{2}{9 x^2}+\frac{13}{108} \log \left (x^4+2 x^2+3\right )-\frac{71 \tan ^{-1}\left (\frac{x^2+1}{\sqrt{2}}\right )}{216 \sqrt{2}}-\frac{13 \log (x)}{27} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.133811, antiderivative size = 71, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.226, Rules used = {1663, 1646, 1628, 634, 618, 204, 628} \[ -\frac{25 \left (x^2+5\right )}{72 \left (x^4+2 x^2+3\right )}-\frac{2}{9 x^2}+\frac{13}{108} \log \left (x^4+2 x^2+3\right )-\frac{71 \tan ^{-1}\left (\frac{x^2+1}{\sqrt{2}}\right )}{216 \sqrt{2}}-\frac{13 \log (x)}{27} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1663
Rule 1646
Rule 1628
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{4+x^2+3 x^4+5 x^6}{x^3 \left (3+2 x^2+x^4\right )^2} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{4+x+3 x^2+5 x^3}{x^2 \left (3+2 x+x^2\right )^2} \, dx,x,x^2\right )\\ &=-\frac{25 \left (5+x^2\right )}{72 \left (3+2 x^2+x^4\right )}+\frac{1}{16} \operatorname{Subst}\left (\int \frac{\frac{32}{3}-\frac{40 x}{9}-\frac{50 x^2}{9}}{x^2 \left (3+2 x+x^2\right )} \, dx,x,x^2\right )\\ &=-\frac{25 \left (5+x^2\right )}{72 \left (3+2 x^2+x^4\right )}+\frac{1}{16} \operatorname{Subst}\left (\int \left (\frac{32}{9 x^2}-\frac{104}{27 x}+\frac{2 (-19+52 x)}{27 \left (3+2 x+x^2\right )}\right ) \, dx,x,x^2\right )\\ &=-\frac{2}{9 x^2}-\frac{25 \left (5+x^2\right )}{72 \left (3+2 x^2+x^4\right )}-\frac{13 \log (x)}{27}+\frac{1}{216} \operatorname{Subst}\left (\int \frac{-19+52 x}{3+2 x+x^2} \, dx,x,x^2\right )\\ &=-\frac{2}{9 x^2}-\frac{25 \left (5+x^2\right )}{72 \left (3+2 x^2+x^4\right )}-\frac{13 \log (x)}{27}+\frac{13}{108} \operatorname{Subst}\left (\int \frac{2+2 x}{3+2 x+x^2} \, dx,x,x^2\right )-\frac{71}{216} \operatorname{Subst}\left (\int \frac{1}{3+2 x+x^2} \, dx,x,x^2\right )\\ &=-\frac{2}{9 x^2}-\frac{25 \left (5+x^2\right )}{72 \left (3+2 x^2+x^4\right )}-\frac{13 \log (x)}{27}+\frac{13}{108} \log \left (3+2 x^2+x^4\right )+\frac{71}{108} \operatorname{Subst}\left (\int \frac{1}{-8-x^2} \, dx,x,2 \left (1+x^2\right )\right )\\ &=-\frac{2}{9 x^2}-\frac{25 \left (5+x^2\right )}{72 \left (3+2 x^2+x^4\right )}-\frac{71 \tan ^{-1}\left (\frac{1+x^2}{\sqrt{2}}\right )}{216 \sqrt{2}}-\frac{13 \log (x)}{27}+\frac{13}{108} \log \left (3+2 x^2+x^4\right )\\ \end{align*}
Mathematica [C] time = 0.0512072, size = 97, normalized size = 1.37 \[ \frac{1}{864} \left (-\frac{300 \left (x^2+5\right )}{x^4+2 x^2+3}-\frac{192}{x^2}+\sqrt{2} \left (52 \sqrt{2}+71 i\right ) \log \left (x^2-i \sqrt{2}+1\right )+\sqrt{2} \left (52 \sqrt{2}-71 i\right ) \log \left (x^2+i \sqrt{2}+1\right )-416 \log (x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.014, size = 63, normalized size = 0.9 \begin{align*}{\frac{1}{54\,{x}^{4}+108\,{x}^{2}+162} \left ( -{\frac{75\,{x}^{2}}{4}}-{\frac{375}{4}} \right ) }+{\frac{13\,\ln \left ({x}^{4}+2\,{x}^{2}+3 \right ) }{108}}-{\frac{71\,\sqrt{2}}{432}\arctan \left ({\frac{ \left ( 2\,{x}^{2}+2 \right ) \sqrt{2}}{4}} \right ) }-{\frac{2}{9\,{x}^{2}}}-{\frac{13\,\ln \left ( x \right ) }{27}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.45779, size = 89, normalized size = 1.25 \begin{align*} -\frac{71}{432} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (x^{2} + 1\right )}\right ) - \frac{41 \, x^{4} + 157 \, x^{2} + 48}{72 \,{\left (x^{6} + 2 \, x^{4} + 3 \, x^{2}\right )}} + \frac{13}{108} \, \log \left (x^{4} + 2 \, x^{2} + 3\right ) - \frac{13}{54} \, \log \left (x^{2}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.61482, size = 275, normalized size = 3.87 \begin{align*} -\frac{246 \, x^{4} + 71 \, \sqrt{2}{\left (x^{6} + 2 \, x^{4} + 3 \, x^{2}\right )} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (x^{2} + 1\right )}\right ) + 942 \, x^{2} - 52 \,{\left (x^{6} + 2 \, x^{4} + 3 \, x^{2}\right )} \log \left (x^{4} + 2 \, x^{2} + 3\right ) + 208 \,{\left (x^{6} + 2 \, x^{4} + 3 \, x^{2}\right )} \log \left (x\right ) + 288}{432 \,{\left (x^{6} + 2 \, x^{4} + 3 \, x^{2}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.200721, size = 75, normalized size = 1.06 \begin{align*} - \frac{41 x^{4} + 157 x^{2} + 48}{72 x^{6} + 144 x^{4} + 216 x^{2}} - \frac{13 \log{\left (x \right )}}{27} + \frac{13 \log{\left (x^{4} + 2 x^{2} + 3 \right )}}{108} - \frac{71 \sqrt{2} \operatorname{atan}{\left (\frac{\sqrt{2} x^{2}}{2} + \frac{\sqrt{2}}{2} \right )}}{432} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09812, size = 89, normalized size = 1.25 \begin{align*} -\frac{71}{432} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (x^{2} + 1\right )}\right ) - \frac{41 \, x^{4} + 157 \, x^{2} + 48}{72 \,{\left (x^{6} + 2 \, x^{4} + 3 \, x^{2}\right )}} + \frac{13}{108} \, \log \left (x^{4} + 2 \, x^{2} + 3\right ) - \frac{13}{54} \, \log \left (x^{2}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]